local wezterm = require 'wezterm'
local config = {}

if wezterm.config_builder then
    config = wezterm.config_builder()
end

config.window_padding = {
    left = 0,
    right = 0,
    top = 0,
    bottom = 0,
}

config.window_frame = {
    font = wezterm.font { family = 'Iosevka Custom', weight = 'Bold' },
    font_size = 12.0
}

config.font = wezterm.font_with_fallback {
    'Iosevka Custom',
    'Symbols Nerd Font'
}

config.color_scheme = 'Gruvbox Custom Dark Hard'

config.color_schemes = {
    ['Gruvbox Custom Dark Hard'] = {
        foreground = '#d5c4a1',
        background = '#1d2021',
        cursor_bg = '#d5c4a1',
        cursor_fg = '#1d2021',
        cursor_border = '#d5c4a1',
        selection_fg = '#1d2021',
        selection_bg = '#678178',
        scrollbar_thumb = '#9f937b',
        split = '#444444',
        ansi = {
            '#1d2021',
            '#fe8019',
            '#b8bb26',
            '#fabd2f',
            '#7396b8',
            '#cd659f',
            '#8ec07c',
            '#9f937b',
        },
        brights = {
            '#484740',
            '#ff9f09',
            '#ecf026',
            '#fff738',
            '#8dbae6',
            '#ff77c4',
            '#b6f69d',
            '#d5c4a1',
        },
    },
}

config.hide_tab_bar_if_only_one_tab = true

return config
